Description: Use the Grafana official plugins (Grafana-kuberneres-app) Link Prometheus show kubernetes informationNote: All monitoring-related information is placed on the Namespace=monitorGithub:https://github.com/grafana/kubernetes-app1, Installation PrometheusProm-rbac.yamlapiVersion: rbac.authorization.k8s.io/v1beta1kind: ClusterRolemetadata: name: prometheus namespace: monitorrules:- apiGroups: [""]
collaboration with various teams, Kubernetes now proposes Device Plugin, CPU Manager, Hugepage, Resource Claas to support a variety of hardware. Kubernetes 1.8 is the first large-scale feature release after the founding of such a group and looks forward to more progress.Let's take a look at what's published in Kubernetes 1.8.Publish a topicKubernetes through the
ClusterCluster is a collection of compute, storage, and network resources, and Kubernetes uses these resources to run various container-based applicationsMasterMaster is the brain of cluster, whose primary responsibility is scheduling, that is, deciding where the application will run. Master runs the Linux operating system, which can be either a physical machine or a virtual machine. To achieve high availability, you can run multiple master.NodeNode's
Management
Parallel Pod Management
Update Strategies
On Delete
Rolling Updates
Partitions
Using statefulsetsStatefulsets is valuable for applications this require one or more of the following.
Stable, unique network identifiers.
Stable, persistent storage.
Ordered, graceful deployment and scaling.
Ordered, graceful deletion and termination.
Ordered, automated rolling updates.
In the above,
as follows:
The log collection scenario looks like this:
We have provided a common log component for Java applications,--appenders, which will output the Java log stream to Fluentd, and the output to FLUENTD relay because it runs in parallel with the existing log hub. The other parts are no different from the mainstream EFK model. It is also a good choice to use Daemonset to run Fluentd and Fluentd with the app in a sidecar way.
In the container
supports submission via local KUBECTL proxy.
You can use an authentication agent to communicate directly with an API server without having to pass credentials to Spark-submit. The local agent can start by running the following command:
If our local agent is listening on port 8001, we will submit the code shown below:
Communication between the Spark and kubernetes clusters is performed using the Fabric8 kubern
and cannot be associated with replicationcontroller, deployment, or Daemonset. And Kubelet could not perform a health check on them. Static pods are always created by Kubelet and always run on the node where Kubelet resides. There are two ways to create a static pod: Configuration file or HTTP Mode 1) configuration file First, you need to set the Kubelet startup parameter "--config", specify the directory where the kubelet needs to be monitored, kube
is responsible for launching the container application, which also monitors the health of the container and restarts if a crash is generated based on a restart policy. But in order to publish the application externally, Kubernetes needs an explicitly created service object. Rancher gets the workload claims through a user-friendly interaction and creates all the required kubernetes structures in the backgro
Guide:Kubernetes a ride on the dust to open, then the enterprise should start to kubernetes migration? Under what circumstances do you really accept it? Some of the technology frontier companies first-step practice is probably the most persuasive and reference value. This article is a good reference.1Kubernetes now rage, it is part of a massive cloud-native movement. All major cloud providers use it as a solution for deploying cloud-native application
:
-containnerport:80
livenessprobe:
tcpsocket:
Port:
timeoutseconds:1 initialdelayseconds:15
3) Httpgetaction: Calls the HTTP GET method through the container's IP address, port number and path, if the response state code is greater than or equal to 200 and less than 400, then the container is considered healthy.
APIVERSION:V1
kind:pod
metadata:
name:pod-with-healthcheck
Spec:
containers:
-Name: Nginx
Image:nginx
ports:
-containnerport:80
The Kubernetes network model is made up of four parts from inside to outside:
The network where the pod interior container resides
The network where the pod resides
Network for communication between pod and service
Network of communication between outside and service
It is recommended that you understand the network model of Docker before reading this article. Refer to the author's first two articles [
Kubernetes has developed a Elasticsearch add-on to enable log management of the cluster. This is a combination of Elasticsearch, FLUENTD and Kibana. Elasticsearch is a search engine that is responsible for storing logs and providing query interfaces; Fluentd is responsible for collecting logs from Kubernetes and sending Elasticsearch;kibana a Web GUI that users can browse and search for stored in Logs in th
First, Kubernetes common resourcesThe following is an object in Kubernetes, which can be configured as an API type in a Yaml file.
Category
Name
Workload-based resource objects
Pod replicaset replicationcontroller deployments statefulsets daemonset Job cronjob
Service Discovery and load balancing
Servic
What is 1.1 kubernetes?First, it is a new, container-based, distributed architecture leading solution. is an open source version of Google's Borg (large-scale cluster management system).Second, if the system design follows the Kubernetes design idea, then the traditional system architecture and business does not have much to do with the underlying code or function modules (such as load balancing, service se
main components. The first is a pod that runs as part of a replication controller with a single copy. It runs the AOC dashboard and data collection platform. The second component is the daemonset of the AOC collector. It tells Kubernetes to run a pod with a collector container on all nodes of the environment. These collectors are configured to send information to the AOC pod.Generate trafficWe will use mor
Concept GroomingIn order to solve the above-mentioned problem, Kubernetes does not need to find a way, after all, is the network security level of the problem, every service will encounter problems, the industry has a mature solution to solve. Here we look at industry scenarios and related concepts.
Symmetric encryption/Asymmetric encryptionThese two concepts belong to cryptography, which is not easy to understand for the students who have n
multiple labels, associating objects through labels.
higher-level abstraction based on basic objects:
nreplicaset
Next Generation Replicationcontroller. Ensure the number of pod replicas specified at any given time and provide functionality such as declarative updates.
The only difference between RC and RS is that lableselector support is different, RS supports a new collection based label, and RC only supports an equation based label.
NDeployment
Deployment is a higher-level API object that m
This article describes the use of Node-exporter, Prometheus, Grafana to monitor the cluster in a k8s cluster.Its implementation principle is somewhat similar to elk, EFK combination. The Node-exporter component collects the metrics monitoring data on the node and pushes the data to Prometheus, Prometheus is responsible for storing the data, and grafana the data to the user in a graphical form on the Web page. Before you begin, it is necessary to understand what the next Prometheus is. Prometheu
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.